package zx.tas.model

import sample.ui.Properties
import com.google.gson.annotations.SerializedName
import kotlinx.coroutines.script.tes.appDeviceId


// 不混淆
data class ApiResult<T>(
    val code: Int? ,
    val message: String? ,
    val data: T,
)


data class ActivateRequest(
    @SerializedName("c") val cdk: String,
    @SerializedName("d") val d: String = appDeviceId // 保留默认值
)

data class HeartbeatRequest(
    @SerializedName("type") val type: String,
    @SerializedName("c") val c: String = (Properties.ckV2Info?.value ?: ""),
    @SerializedName("s") val s: String = (Properties.sessionId ?: ""),
    @SerializedName("d") val d: String = appDeviceId,
    @SerializedName("tk") val tk: String = Properties.scene
)
